//
//  CalculateLoanMessageView.m
//  YiJuZhangShou
//
//  Created by URANUS on 16/3/18.
//  Copyright © 2016年 Uranus. All rights reserved.
//

#import "CalculateLoanMessageView.h"
#import "LoadTableUtilView.h"
@interface CalculateLoanMessageView()
@property (nonatomic, strong) UITableView *tableView;
@property (nonatomic, strong) LoadTableUtilView *backView;
@end
@implementation CalculateLoanMessageView

#pragma mark Initialize
- (instancetype)init
{
    self = [super init];
    if (self) {
        [self loadCalculateLoanMessageView];
    }
    return self;
}
#pragma mark Private
- (void)loadCalculateLoanMessageView{
    self.backView = [LoadTableUtilView new];
    [self addSubview:self.backView];
    self.tableView = [self.backView loadStandardTableView];
    self.tableView.backgroundColor = BackgroundColor240;
    self.tableView.scrollEnabled = NO;
    self.tableView.allowsSelection = NO;
    self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    self.backView.isTableViewSizeToFit = YES;
    [self.backView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self);
    }];
}

#pragma mark Setter
-(void)setCalculateLoanMessageArray:(NSMutableArray *)calculateLoanMessageArray{
    self.backView.models = calculateLoanMessageArray;
}


@end
